package com.feemanage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.validate.edit;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.framework.config.BigDecimalSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 经费调账从表
 */
@Data
@ApiModel("经费调账从表")
@TableName("biz_budget_amount_alteration")
public class BizBudgetAmountAlteration {

    private static final long serialVersionUID = 1L;

    /** 自增ID */
    @ApiModelProperty("自增ID")
    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    @NotNull(message = "id不能为空", groups = {edit.class})
    private String id;

    /** 经费卡号id */
    @ApiModelProperty("经费卡号id")
    private String feeChargerId;

    /** 经费卡号 */
    @ApiModelProperty("经费卡号")
    private String feeCardNum;

    /** 费用代码 */
    @ApiModelProperty("费用代码")
    private String subjectCode;

    /** 经费变化金额 */
    @ApiModelProperty("经费变化金额")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal budgetFeeChange;

    /** 主表id */
    @ApiModelProperty("主表id")
    private String alterationId;
}
